{% extends 'usercenter-base.html' %}
{% block title %}我的作业- 慕学在线网{% endblock %}
{% load staticfiles %}
{% block custom_css %}
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">

<link rel="stylesheet" type="text/css" href="{% static '' %}css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="{% static '' %}css/muke/course/common-less.css">
{% load filter %}


{% endblock %}
{% block custom_bread %}
     <section>
        <div class="wp">
            <ul  class="crumbs">
                <li><a href="{% url 'index' %}">首页</a>></li>
                <li><a href="{% url 'users:info' %}">个人中心</a>></li>
                <li>我的成绩</li>
            </ul>
        </div>
    </section>
{% endblock %}
{% block rigt_form %}
   <div class="right" >
            <div class="personal_des Releasecont">
                <div class="head">
                    <h1>我的成绩</h1>
                </div>
            </div>
            <div class="personal_des permessage">
                <div class="head">
                    <ul class="tab_header messagehead">
                  <li ><a href="{% url 'users:my_score' %}">作业成绩</a></li>
                         <li class="active"><a href="">讨论成绩</a></li>
                    </ul>

                </div>
                <div class="companycenter">

                <div class="messagelist">
                    {% for item in user_discuss_score %}


                    <div class="messages" class="messages" style="border-bottom: 1px solid #edf1f2;">
                        <div class="fr">
                            <div class="top"><span >{{ item.1 }}</span>
                                <i style="font-size: 2px;color: #aaac9c">（发布时间：{{ item.3 }}）</i>
                                <span style="position: absolute;left: 45%;font-size: 10px" >发布教师 &nbsp; {{ item.0}}</span>
                                {% if item.7 %}
                                <span style="position: absolute;right: 5%;color: blue;font-size: 30px" >{{ item.7 }}分</span>
                                {% endif %}
                            </div>

                            <p>
                                <span>
{#                                    {% url  'course:discuss_detail' item.coursediscuss.course.id item.coursediscuss.id %}#}
                                   <i class="aui-iconfont aui-icon-question" ><a href="{% url  'course:discuss_detail' item.2 item.4 %}" style="color: #aaac9c;font-size: 14px">&nbsp;&nbsp;讨论话题：{{ item.5 }}</a></i>
                                    <i style="position:absolute;color: red;right: 5%">经验值：{{ item.8 }}</i>
                                </span>
                            </p>
                        </div>
                    </div>
                    {% endfor %}
                </div>
                </div>
                <div class="pageturn pagerright">
              <ul class="pagelist">
             {% if user_discuss_score.has_previous  %}
                 <li class="long"><a href="?page={{user_discuss_score.previous_page_number}}">上一页</a></li>
            {%endif%}

                {% for i in   user_discuss_score.paginator.page_range %}
                 {%if i == user_discuss_score.number  %}
                     <li class="active"><a href="?page={{ i }}">{{i }}</a></li>
                    {% else %}
                      <li><a href="?page={{ i }}" class="page">{{ i }}</a></li>
                    {% endif %}
                {% endfor %}
                {% if user_discuss_score.has_next  %}
                 <li class="long"><a href="?page={{user_discuss_score.next_page_number}}">下一页</a></li>
            {%endif%}
            </ul>
            </div>
            </div>
        </div>
{% endblock %}


